﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace JewererBasic.Models
{
    public class CastingDummy
    {
        public string IdC { get; set; }
        public string NameC { get; set; }
        public string DecriptionC { get; set; }
        public string MoldC { get; set; }
        public double WeightC { get; set; }
        public int IdUnitC { get; set; }
        public int IdTypeC { get; set; }
        public string IdProduct { get; set; }
        public int Qty { get; set; }
        // constructor
        public CastingDummy()
        {
            // this value facilates for user enter value
            IdUnitC = 4;
            IdTypeC = 4;
            WeightC = 0;
        }

        // return CASTING model database
        public PRODUCT_MOULD GetCASTING()
        {
            PRODUCT_MOULD c = new PRODUCT_MOULD();
            c.IdUnit=IdUnitC;
            c.IdProduct=IdProduct;
            c.IdType=IdTypeC;
            c.IdMould=MoldC;
            c.Qty = Qty;
            return c;
        }
    }
}